# 封装TPSHOP注册接口
class TPSHOPREGAPI:
    @classmethod
    def tpshop_code(cls,session):
        url='http://hmshop-test.itheima.net/index.php?m=Home&c=User&a=verify&type=user_reg&r=0.2244436902010849'
        session.get(url)
    @classmethod
    def tpshop_reg(cls,session,body):
        url1='http://hmshop-test.itheima.net/Home/User/reg.html'
        headers={"Content-Type": "application/x-www-form-urlencoded"}
        resp=session.post(url=url1,headers=headers,data=body)

        return resp